import request from '@/utils/request'
//查询
export function listTags(data) {
  return request({
    url: '/datahandler/b/tags/queryPageList',
    method: 'post',
    data: data
  })
}
//删除
export function deleteTags(data) {
  return request({
    url: '/datahandler/b/tags/batchDelete',
    method: 'post',
    data: data
  })
}
//新增
export function  addTags(data){
  return request({
    url:"/datahandler/b/tags/add",
    method:'post',
    data:data
  })
}
//详情
export function queryTags(params) {
  return request({
    url: '/datahandler/b/tags/query',
    method: 'get',
    params: params
  })
}
//停用启用
export function updateStatusTags(data) {
  return request({
    url: '/datahandler/b/tags/updateStatus',
    method: 'post',
    data: data
  })
}
//编辑
export function updateTags(data){
  return request({
    url:'/datahandler/b/tags/update',
    method:'post',
    data: data
  })
}


// 删除数据前校验
export function deleteForCheck(data) {
  return request({
    url: '/datahandler/b/tags/batchDeleteCheck',
    method: 'post',
    data: data
  })
}
